package com.wfh.adapter;

import java.util.ArrayList;

import com.wfh.R;
import com.wfh.activity.ProductActivity;

import android.content.Context;
import android.content.Intent;
import android.sax.StartElementListener;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;

public class ShareAdapter extends BaseAdapter {
	private Context mcontext;
	private ArrayList<String> list;
	public ShareAdapter(Context context) {
		this.mcontext = context;
		list=new ArrayList<String>();
		list.add("新浪微博");
		list.add("QQ空间");
		list.add("微信");
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return list.size();
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		TextView textview = new TextView(mcontext);
		textview.setText(list.get(position));
		textview.setPadding(10, 10, 0, 10);
		return textview;
	}


}
